package com.ssy.lingxi.search.service;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.search.api.model.request.SimpleIdListRequest;
import com.ssy.lingxi.search.entity.channel.PurchaseChannel;
import com.ssy.lingxi.search.model.response.PurchaseChannelResponse;

import java.util.List;

/**
 * 进货单管理类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/6/22
 */
public interface IPurchaseChannelService {
    /**
     * 查询进货单
     */
    List<PurchaseChannelResponse> getPurchaseList(UserLoginCacheDTO sysUser, Long channelMemberId, Long channelMemberRoleId, Long shopId);

    /**
     * 添加/修改进货单
     * @param purchaseChannel
     * @return
     */
    Integer saveOrUpdatePurchase(UserLoginCacheDTO sysUser, PurchaseChannel purchaseChannel);

    /**
     * 删除进货单
     * @param simpleIdListRequest
     * @return
     */
    String deletePurchase(SimpleIdListRequest simpleIdListRequest);

    /**
     * 查询进货单数量
     * @param sysUser
     * @return
     */
    Integer getPurchaseCount(UserLoginCacheDTO sysUser, Long shopId, Long channelMemberId, Long channelMemberRoleId);
}
